#include <iostream>
#include <stdio.h>



void swap( int * const a, int * const b )
{
	int tmp;
	tmp = *b;
	*b = *a;
	*a = tmp;
}


int main()
{
	//const int arraySize = 10;
	//int a[arraySize] = {2, 6, 4, 8, 10, 12, 89, 68, 45, 37};

	int x, y;
	x = 1;
	y = 2;
	int * const a = &x;
	int * const b = &y;
	printf( "%x, %x, %d %d\n", a, b, *a, *b );
	swap( a, b );
	printf( "%x, %x, %d %d\n", a, b, *a, *b );

	printf("\n");
	return 0;
}
